/**
 *
 */
$(document).ready(function () {

    $(".right_bottom a").click(function () {
        var search = $(this).text();
        $("#queryKeysStr").val(search);
    });

    $(".new_question").click(function () {
        var username = $("#top_user_login_tag").val();
        if (username != null) {
            window.location.href = "/ask";
        } else {
            alert("请先登录！");
        }
    });

    $(".sear").click(function () {
        var wdsearch = $("#queryStr").val();
        if (wdsearch != null) {
            $("#questionForm").submit();
        }
    });

    $(".sub").click(function () {
        var answer = $(".ke-edit-textarea").text();
        if (answer != null) {
            $(".anform").submit();
        }
    });

});